package org.NooLab.tikaserver.tcp.box;

import org.NooLab.tikaserver.tcp.box.infra.ClientMsgHandler;
import org.NooLab.tikaserver.tcp.box.infra.ClientMsgHandlerIntf;
import org.NooLab.tikaserver.tcp.box.infra.ServerMsgHandler;
import org.NooLab.tikaserver.tcp.box.infra.ServerMsgHandlerIntf;






public class TcpMessageHandlerFactory {

	ServerMsgHandler srvMsgHandler ;
	ClientMsgHandler cliMsgHandler ;
	
	
	public ServerMsgHandlerIntf getServerMsgHandler(){
		
		if (srvMsgHandler==null){
			srvMsgHandler = new ServerMsgHandler(this);
		}
		return srvMsgHandler;
	}

	public ClientMsgHandlerIntf getClientMsgHandler(){
		
		if (cliMsgHandler==null){
			cliMsgHandler = new ClientMsgHandler(this);
		}
		return cliMsgHandler;
	}
	  
	
}
